package cn.ricecode.common.entity;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * @author LiuZhulan
 */
public class BaseBean implements Serializable {

    protected static final long serialVersionUID = 42L;

    public <T> T convertExt(Class<T> clazz) {
        String json = JSON.toJSONString(this);
        return JSON.parseObject(json, clazz);
    }


}
